package cn.wolfcode.rbac.mapper;

import cn.wolfcode.rbac.domain.Permission;
import cn.wolfcode.rbac.domain.Role;
import cn.wolfcode.rbac.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    public List<Permission> selectAll();
    public Permission selectByPrimaryKey(Long id);

    public void insert(Permission permission);
    public void deleteByPrimaryKey(Long id);
    public void updateByPrimaryKey(Permission permission);

    public int selectForCount(QueryObject qo);
    public List<Permission> selectForList(QueryObject qo);

    //获取权限表中的表达式的值
    public abstract List<String> selectAllExpression();
    //按照员工ID查询员工信息，要与权限相关联
    public abstract List<String> selectByEmpId(Long id);
}
